#include <dolphin/socket.h>
int SOGetSockName( int s, void* sockAddr );
SOGetSockName() gets the locally-bound name (address)
of the specified socket.
s |
The socket descriptor. |
sockAddr |
A pointer to a socket address structure where the locally-bound name is
stored.
The len field of the socket address must be properly
initialized (e.g., sizeof(SOSockAddrIn)). |
| zero | Succeeded. |
SO_EBADF |
Bad socket descriptor. |
SO_EINVAL |
Invalid operation. |
SO_ENETRESET |
Socket library is not initialized. |
Note: Additional errors may be generated and returned in future library releases. All the negative return values must be treated as generic errors.